package com.cartoonrabbit.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author LiuTeng
 * @since 2023-01-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_recharge_order")
@ApiModel(value="RechargeOrder对象", description="")
public class RechargeOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "订单ID")
    @TableId("order_id")
    private String orderId;

    @ApiModelProperty(value = "用户openId")
    @TableField("open_id")
    @JsonIgnore
    private String openId;

    @ApiModelProperty(value = "订单描述")
    private String description;

    @ApiModelProperty(value = "预支付id")
    @TableField("prepay_id")
    private String prepayId;

    @ApiModelProperty(value = "交易金额")
    @TableField("trade_money")
    private Long tradeMoney;

    @ApiModelProperty(value = "制作次数")
    @TableField("product_times")
    private Integer productTimes;

    @ApiModelProperty(value = "交易id")
    @TableField("trade_id")
    private String tradeId;

    @ApiModelProperty(value = "交易时间")
    @TableField("trade_time")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private LocalDateTime tradeTime;

    @ApiModelProperty(value = "交易状态")
    @TableField("trade_status")
    private Integer tradeStatus;

    @ApiModelProperty(value = "交易内容")
    @TableField("trade_content")
    @JsonIgnore
    private String tradeContent;

    @ApiModelProperty(value = "订单过期时间")
    @TableField("time_expire")
    @JsonIgnore
    private LocalDateTime timeExpire;

    @ApiModelProperty(value = "订单创建时间")
    @TableField("create_time")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private LocalDateTime createTime;


}
